.order-card {
  margin: 0 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);

  &.shop-card {
    margin-top: 18px;
  }

  &.order-summary-card {
    margin: 18px 0 0 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 0;
  }
}

.takeoutConfirmOrder {
  width: 100%;
  font-size: 0;
  background: rgba(245, 245, 245, 1);

  .clean-white {
    font-size: 0;
    line-height: 0;
  }

  .omit {
    overflow: hidden;
    display: inline-block;
    word-break: keep-all;
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .noaddress {
    background: white;
    display: flex;
    align-items: center;
    height: 150px;
    .location-img {
      width: 38px;
      height: 48px;
      margin: 0 43px 0 51px;
    }
    .needAdd {
      flex: 1;
      height: 42px;
      font-size: 30px;
      font-weight: bold;
      color: rgba(0, 0, 0, 0.85);
      line-height: 42px;
    }
    .rightImg {
      width: 42px;
      height: 42px;
      margin-right: 48px;
    }
  }

  .address {
    background: white;
    display: flex;
    padding-top: 32px;
    height: 205px;
    box-sizing: border-box;

    .location-img {
      width: 38px;
      height: 48px;
      margin-left: 51px;
    }

    .address-inner {
      width: 480px;
      margin-left: 43px;

      .user-info {
        .name {
          font-size: 30px;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.85);
          line-height: 42px;
        }

        .mobile {
          margin-left: 29px;
          font-size: 26px;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.5);
          line-height: 37px;
        }
      }

      .detail {
        height: 66px;
        margin-top: 21px;
        overflow: hidden;

        .text {
          font-size: 24px;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.5);
          line-height: 33px;
        }
      }
    }

    .right-img {
      width: 42px;
      height: 42px;
      margin-top: 42px;
      margin-left: 48px;
    }
  }

  .zebra-line {
    background: white;
    height: 8px;
    width: 100%;

    img {
      object-fit: cover;
    }
  }

  .split-line {
    width: 100%;
    background: white;
    display: flex;
    justify-content: center;

    .line {
      margin-top: 36.5px;
      height: 1px;

      width: 633px;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
  }

  .delivery-time {
    height: 140px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .left {
      display: flex;
      align-items: center;

      .v-line {
        // border-left: solid 2px #ccc;
        vertical-align: middle;
        display: inline-block;
        margin-left: 30px;

        width: 7px;
        height: 30px;
        background: linear-gradient(180deg, #fff04e 0%, #ffdc26 100%);
        border-radius: 4px;
      }

      .content {
        height: 37px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.85);
        line-height: 37px;
        padding: 0;
        margin: 0;
        margin-left: 20px;
      }
    }

    .right {
      height: 45px;
      font-size: 32px;
      font-weight: bold;
      color: rgba(0, 0, 0, 0.85);
      line-height: 45px;

      display: flex;
      align-items: center;

      .prefix {
        width: 26px;
        height: 37px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.85);
        line-height: 37px;
        margin-right: 11px;
      }

      .content {
        height: 45px;
        font-size: 32px;
        font-weight: bold;
        color: rgba(0, 0, 0, 0.85);
        line-height: 45px;

        padding: 0;
        margin: 0;
      }

      .image {
        display: flex;
        align-items: center;
        margin-left: 17px;
      }
      .right-img {
        width: 42px;
        height: 42px;

        padding-right: 36px;
      }
    }
  }

  .order-goods {
    padding: 45px 65px 55px 51px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: none;

    position: relative;

    &:last-child {
      border-radius: 0 0 20px 20px;
    }

    .tc-icon {
      position: absolute;
      top: -7px;
      right: 56px;
      width: 70px;
      height: 92px;
    }

    .shop-info {
      display: flex;
      align-items: center;

      .shop-img {
        width: 48px;
        height: 48px;
      }

      .name {
        margin-left: 11px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 1);
        line-height: 37px;
      }
    }

    .goods-list {
      margin-top: 38px;
    }

    .goods-info + .goods-info {
      margin-top: 38px;
    }

    .goods-list .goods-info {
      display: flex;
      justify-content: space-between;

      .goods-img {
        width: 130px;
        height: 129px;
        background: rgba(231, 241, 255, 1);
        border-radius: 12px;
      }

      .goods-desc {
        width: 416px;
        margin-left: 11px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .name {
          font-size: 26px;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.85);
          line-height: 37px;
        }

        .desc {
          font-size: 24px;
          font-weight: 300;
          color: rgba(153, 153, 153, 1);
          line-height: 24px;
        }

        .price {
          font-size: 24px;
          font-weight: bold;
          color: rgba(0, 0, 0, 0.85);
          line-height: 40px;

          .unit {
            font-size: 20px;
            margin-right: 3px;
          }
        }
      }

      .count {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        font-size: 28px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.85);
        line-height: 40px;
        align-items: flex-end;
      }
    }
  }

  .order-summary {
    .inner {
      margin: 20px 35px 0 33px;
      padding: 0 33px 50px 18px;
    }

    .row {
      display: flex;
      align-items: center;

      .left {
        // height: 37px;
        // line-height: 37px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.5);
      }

      .right {
        // height: 37px;
        // line-height: 37px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.85);

        flex: 1;
        align-items: center;
        display: flex;
        justify-content: flex-end;

        .unit {
          margin-right: 6rpx;
        }
      }
    }

    .pack,
    .express {
      margin-top: 35px;
    }

    .split-line {
      .line {
        margin-top: 29px;
      }
    }

    .full-discount {
      margin-top: 35px;
    }

    .coupon,
    .points {
      margin-top: 35px;
    }

    .points {
      $scaleSize: 49 / 64;

      .right {
        display: flex;
        align-items: center;
        position: relative;
      }

      .point-right-image {
        transform: rotate(90deg);
        width: 30px;
        height: 29px;
        margin-right: 15px + 57 * $scaleSize * 2;
      }

      .custom-switch {
        padding: 0;
        margin: auto;
        margin-left: 10px;
        top: -16px;

        position: absolute;
        right: -57px * (1 - $scaleSize);
      }

      .switch-h5,
      .wx-switch-input {
        z-index: 1;
        transform: scale($scaleSize);
      }

      .text {
        z-index: 2;
        &.no-margin {
          margin: 0;
        }
      }
    }

    .gift-card {
      margin-top: 35px;
    }

    .gift-card,
    .coupon {
      color: rgba(0, 0, 0, 0.85);
      font-size: 26px;
      display: flex;
      align-items: center;

      .active {
        color: #0091ff;
      }

      .unit {
        margin-right: 6px;
        height: 37px;
        line-height: 37px;
      }

      .co-name {
        max-width: 420px;
      }

      .right-img {
        margin-left: 10px;
        width: 29px;
        height: 29px;
      }

      &.total {
        align-items: flex-end;

        .unit {
          font-size: 24px;
          line-height: 30px;
        }

        .price {
          font-size: 40px;
          font-weight: bold;
          color: rgba(68, 68, 68, 1);
          line-height: 40px;
        }
      }
    }

    .summary {
      display: flex;
      justify-content: space-between;
      align-items: center;

      margin-left: 31px;
      margin-right: 49px;
      padding: 0 33px 0 18px;

      .prefix {
        height: 37px;
        font-size: 26px;
        font-weight: 400;
        color: rgba(0, 0, 0, 0.5);
        line-height: 37px;
      }

      .right {
        min-width: 75px;
        height: 40px;
        font-size: 24px;
        font-weight: bold;
        color: #444444;
        line-height: 40px;

        .unit {
          font-size: 24px;
          line-height: 30px;
          margin-right: 4px;
        }

        .price {
          height: 40px;
          line-height: 40px;
          font-size: 40px;
          font-weight: bold;
          color: rgba(68, 68, 68, 1);
        }
      }
    }
  }

  .bottom-card {
    height: 157px;
    background: #ffffff;
    margin-bottom: 95px;

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .btn-bottom {
    margin: 50px 35px 0 33px;
    width: 100%;
    height: 92px;

    .btn {
      background: rgba(255, 220, 38, 1);
      border-radius: 10px;
      font-size: 28px;
      font-weight: bold;
      color: rgba(0, 0, 0, 0.85);
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn.button-hover {
      background: rgba(255, 220, 38, 0.78);
    }

    .btn::after {
      border: none;
    }
  }
}
